package gov.pbc.nn.kjgl.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 项目文件
 */
@Entity
@Table(name = "T_PFile")
public class ProjectFile extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Column(name = "FILE_NAME_", length = 120)
	@PropertyDef(label = "文件名", description = "文件:文件")
	private String fileName;

	@Column(name = "PATH_", length = 250)
	@PropertyDef(label = "文件路径", description = "文件路径:文件路径")
	private String path;

	@Column(name = "OWNER_ID_", length = 60)
	@PropertyDef(label = "所有者ID", description = "所有者ID:业务记录的ID")
	private String ownerId;

	//5是事项管理流程中软件管理用到的项目管理部门意见文件
	@Column(name = "TYPE_")
	@PropertyDef(label = "文件类型", description = "0：立项；1：开发；2：任务；3：问题；4：变更")
	private int type;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
